package com.gxy.learn.design.model.create.builder;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 建造者模式测试类
 * @author: gaoxueyong
 * @Date: 2022/11/7 14:19
 */
@Slf4j
public class Client {
    public static void main(String[] args) {
        Director director = new Director(new MobileBikeBuilder());
        Bike bike = director.contruct();
        log.info("{}",bike.getName());
        log.info("{}",bike.getFrame());
        log.info("{}",bike.getSeat());
        log.info("====================");
        director = new Director(new OfoBikeBuilder());
        bike = director.contruct();
        log.info("{}",bike.getName());
        log.info("{}",bike.getFrame());
        log.info("{}",bike.getSeat());


    }
}
